package com.rxjava;

import com.rxjava.bean.User;
import com.rxjava.http.UserModel;

import rx.functions.Action1;

/**
 * Created by kkmike999 on 16/3/21.
 */
public class RxjavaMain {

    public static void main(String[] args) {

        UserModel userModel = new UserModel();

        userModel.getUserFromDb2()
                .subscribe(new Action1<User>() {
                    public void call(User user) {
                        System.out.println(user);
                    }
                });
    }
}
